Drupal: $form['#redirect'] = FALSE; doesn't work.
Posted
by Patrick
on Stack Overflow
See other posts from Stack Overflow
or by Patrick
Published on 2010-06-17T07:11:48Z
Indexed on
2010/06/17
18:23 UTC
Read the original article
Hit count: 133
hi,
I've tried to change the redirection when I submit my edit-node form, by addming the following line to my template.php file, in my theme
$form['#redirect'] = FALSE;
I'm sure the template.php file works well because I have other lines in which I change, for example, the weights of some elements. But the redirection doesn't work.
I've also tried $form['#redirect'] = 'anotherPage'; without success.
What am I doing wrong ? I'm following the Drupal APIs, about forms: http://api.drupal.org/api/drupal/developer--topics--forms_api_reference.html/6#redirect
thanks
© Stack Overflow or respective owner